/**
 * TaskCallable.java
 * Created at 2017-12-26
 * Created by zhanghailin
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.basic.action;

import java.util.concurrent.Callable;

/**
 * <p>ClassName: TaskCallable</p>
 * <p>Description: TODO</p>
 * <p>Author: zhanghailin</p>
 * <p>Date: 2017-12-26</p>
 */
public class TaskCallable implements Callable<String>{
	//代码走查数据常量
	private int ID_NUM=3;
	
    private int id;
    public TaskCallable(int id){
        this.id = id;
    }
    @Override
    public String call() throws Exception {
        System.out.println(id);
        if(ID_NUM==id){
            System.out.println("xiuxi");
            this.wait(10000);
        }
        return "result of taskWithResult "+id;
    }
}
